<?php

class Chap0
{

	static $configs = array();

	static $ds = null;

}

/**
 * chap0 模块
 * 
 * @return void
 */
function chap0_init()
{
	require_once APP_DIR . '/app/g/_init_.php';
	require_once G_ROOT  . '/data/form.php';
	require_once G_ROOT  . '/markdown/md.php';
	require_once G_ROOT  . '/redis/Repo.php';

	define('Chap0_ROOT', dirname(__FILE__));	
	require_once Chap0_ROOT .'/_prop/business.php';

	Chap0::$configs = require(Chap0_ROOT .'/_config_.php');
	Chap0::$ds = RedisRepo::dsn( Chap0::$configs['redis_6379_00'] );

	// prety_printr(Chap0::$ds->redis(),Chap0::$ds->id());exit;
}

function chap0_filter($q,$sffunc,$reflect)
{
	return true;
}

?>